{{ define "base" }}

<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{ block "title" . }}我的博客{{ end }}</title>
    <link rel="stylesheet" href="/static/css/style.css">
</head>
<body>
    <header>
        <div class="container">
            <h1><a href="/">我的个人博客</a></h1>
            <nav>
                <a href="/">首页</a>
                <a href="/about">关于</a>
            </nav>
        </div>
    </header>
    
    <main class="container">
        {{ block "content" . }}{{ end }}
    </main>
    
    <footer>
        <div class="container">
            <p> 我的个人博客 | Powered by Gin</p>
        </div>
    </footer>
</body>
</html>
{{ end }}